package com.proj.android.canyondefense.core.base;

import com.proj.android.canyondefense.core.math.Rectangle;
import com.proj.android.canyondefense.core.math.Vector2;

public class GameObject {
    public final Vector2 position;
    public final Rectangle bounds;
    
    /**
     * 
     * @param x			center x of object
     * @param y			center y of object
     * @param width		width of object
     * @param height	height of object
     */
    public GameObject(float x, float y, float width, float height) {
        this.position = new Vector2(x, y);
        this.bounds = new Rectangle(x - width/2, y - height/2, width, height);
    }
}
